my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(my_list)
num = []
for i in my_list:
    if i % 2 == 0:
        num.append(i)
print(num)
num2 = []
i = 0
while i < len(my_list):
    if my_list[i] % 2 == 0:
        num2.append(my_list[i])
    i += 1
print(num2)
